package com.ympc.pojo;

import java.util.Date;

/**
 * 作业视图对象（包含科目信息）
 */
public class AssignmentVO {
    private Integer id;
    private Integer teacherId;
    private Integer classId;
    private String title;
    private String content;
    private Date publishTime;
    private Date deadline;
    private String status;
    private String subject; // 科目
    private String teacherName; // 教师姓名
    private String className; // 班级名称

    public AssignmentVO() {
    }

    public AssignmentVO(Assignment assignment) {
        if (assignment != null) {
            this.id = assignment.getId();
            this.teacherId = assignment.getTeacherId();
            this.classId = assignment.getClassId();
            this.title = assignment.getTitle();
            this.content = assignment.getContent();
            this.publishTime = assignment.getPublishTime();
            this.deadline = assignment.getDeadline();
            this.status = assignment.getStatus();
        }
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
}

